package com.fasteat.mall.service.impl;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * 消息消费者
 */
@Component
public class AdvertisementConsumer {

	@RabbitListener(queues = "advertisement.queue")
	public void accept(String id) {
		System.out.println("消费:" + id);
	}

}
